package com.sk.weichat.bean.redpacket;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author lzs
 * @date 2019/10/9
 * Email:343067508@qq.com
 **/
public class RedPacketNoticeInfoBean implements Parcelable {

    /**
     * title : 红包退款
     * refundTime : 1568690547
     * source : 群聊-哈哈哈哈
     * reason : 超时未领取
     * money : 1.2
     * redId : 5d63801757cd0e5a8cf3df49
     */

    private String title = "";
    private int refundTime;
    private String source = "";
    private String reason = "";
    private float money;
    private String redId = "";

    public String getRefundType() {
        return refundType;
    }

    public void setRefundType(String refundType) {
        this.refundType = refundType;
    }

    private String refundType = "";

    public RedPacketNoticeInfoBean() {
    }

    protected RedPacketNoticeInfoBean(Parcel in) {
        title = in.readString();
        refundTime = in.readInt();
        source = in.readString();
        reason = in.readString();
        refundType = in.readString();
        money = in.readFloat();
        redId = in.readString();
    }

    public static final Creator<RedPacketNoticeInfoBean> CREATOR = new Creator<RedPacketNoticeInfoBean>() {
        @Override
        public RedPacketNoticeInfoBean createFromParcel(Parcel in) {
            return new RedPacketNoticeInfoBean(in);
        }

        @Override
        public RedPacketNoticeInfoBean[] newArray(int size) {
            return new RedPacketNoticeInfoBean[size];
        }
    };

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(int refundTime) {
        this.refundTime = refundTime;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public String getRedId() {
        return redId;
    }

    public void setRedId(String redId) {
        this.redId = redId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeInt(refundTime);
        dest.writeString(source);
        dest.writeString(reason);
        dest.writeString(refundType);
        dest.writeFloat(money);
        dest.writeString(redId);
    }
}
